package com.adou.d13;

public class SetTest2 {
    public static void main(String[] args) {
        Student stu1 = new Student("蜘蛛精", 25, 169.5);
        Student stu2 = new Student("紫霞", 25, 169.5);
        System.out.println(stu1.hashCode());
        System.out.println(stu1);
        System.out.println(stu2.hashCode());

        System.out.println("//////////hashCode一样////////-");
        String s1 = new String("abc");
        String s2 = new String("acD");
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
    }
}
